package com.liuf.di.api;

import org.pentaho.di.core.exception.KettleException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

import java.util.UUID;

/**
 * @program: spring-cloud-liuf-master
 * @description: 统一异常处理
 * @author: Mr.Liu
 * @create: 2018-08-30 11:19
 * @码云： https://gitee.com/www.jiandan.com
 **/
@ResponseStatus(HttpStatus.NOT_FOUND)
public class ServiceException extends Exception {

    public ServiceException(String msg, Exception e) {
        super(msg + "\n" + e.getMessage());
    }

    public ServiceException(String msg) {
        super(msg);
    }

}
